/******************************************************************************
	This file is a part of the Snapshot Bioinformatics Project

	Copyright (C) 2012-2013 Jarom Schow

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/

#include "TaxonUpdater.h"

#include "SqlServer.h"

/**
**/
TaxonUpdater::TaxonUpdater()
{
}

/**
**/
TaxonUpdater::~TaxonUpdater()
{
}

/**
**/
bool TaxonUpdater::run( Bio::SqlServer &server )
{
	output( "TaxonUpdater v0.1 Copyright (C) 2012-2013 Jarom Schow, All rights reserved." );

	server.updateTaxonomy();

	output( "Done." );

	return true;
}

/**
**/
void TaxonUpdater::printUsage()
{
	output( "Usage:\n" );
	output( "TaxonUpdater [-host <host>] [-port <port>] -db <database> -user <user>" );
	output( "    [-passwd <password>]\n" );
	output( "  host:   The host address of the database to connect to." );
	output( "  db:     The name of the database to connect to." );
	output( "  user:   The user name to connect to the database with." );
	output( "  passwd: The password to use when connecting to the database." );
}
